//https://www.alibabacloud.com/help/zh/doc-detail/90915.htm
resource "alicloud_cdn_domain_config" "main" {
  domain_name                   = var.cdn_domain_name
  function_name                 = var.cdn_function_name
  dynamic "function_args" {
    for_each                    = var.cdn_function_args
    content {
        arg_name                = lookup(function_args.value,"arg_name", null)
        arg_value               = lookup(function_args.value,"arg_value", null)
    }
  }
}